package com.pengshun.modules.api.user.repository;

import com.pengshun.modules.domain.CarOwner;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface CarOwnerRepository extends JpaRepository<CarOwner, Long>, JpaSpecificationExecutor<CarOwner> {

    List<CarOwner> findByUserId(Long id);

    List<CarOwner> findByUserIdAndCarNumberAndCarStatusAndStatusLessThan(Long userId,String carNumber,Integer carStatus,Integer status);
}
